﻿@model PessModel.Archive

@{
    ViewBag.Title = "Review Proposal";
    PessModel.PAuthor pauthor = new PessModel.PAuthor() { ArchiveID = Model.ID };
    ViewBag.AllowEdit = true;
    ViewBag.ArchiveID = Model.ID;


    if (Model.PAuthors.Count() == 0)
    {
        pauthor = new PessModel.PAuthor()
        {
            ArchiveID = Model.ID,
            Country = Model.Country,
            EMail = Model.EMail,
            FirstName = Model.FirstName,
            LastName = Model.LastName,
            Order = 1,
            Organization = Model.SchoolName,
        };
    }

    ViewBag.DefaultAuthor = pauthor;
}


<h2>Proposal Details</h2>
<div id="operate">
    @Html.ActionLink("Back to My Proposals", "Proposals")
</div>

@Html.Partial("_ArchiveDetailsFull", Model)
@{
    MembershipUser user=Membership.GetUser();
    Guid? authorUserID=new Guid(user.ProviderUserKey.ToString());
}
@if (Model.UserID == authorUserID)

{
    if (ViewBag.IsArchiveModificationAllowed && Model.Status == 2)
    {
        <div id="operate_bottom">
            @Html.ActionLink("Edit Proposal", "EditProposal", new { id = Model.ID })
        </div>
    }
}
                
@*@if (ViewBag.IsPaperUploadAllowed && Model.Status == 4)
{
    @Html.ActionLink("Upload Paper", "UploadPaper", new { id = Model.ID })
}*@

@*@if (ViewBag.IsArchiveModificationAllowed && Model.Status == 2)
{
    @Html.ActionLink("Cancel Proposal", "Delete", new { id = Model.ID })
}*@


@*@using (Html.BeginForm("SubmitProposal", "Author"))
        {
            @Html.Hidden("ProposalID", Model.ID)
            <div class="button" style="text-align:center">
                <input type="submit" value="Submit" style="padding:0px 5px 3px 5px; margin-bottom:3px;" />
            </div>
    }*@


